package com.inkyi.assistant.app.todolist.event;

import com.inkyi.framework.common.event.InkActionEvent;

public class TodoEvent extends InkActionEvent {

    /**
     * 新建分组
     */
    public static final String TYPE_GROUP_NEW = "todo_group_new";
    /**
     * 删除分组
     */
    public static final String TYPE_GROUP_DEL = "todo_group_del";
    /**
     * 更新分组
     */
    public static final String TYPE_GROUP_UPDATE = "todo_group_update";

    /**
     * 新增待办
     */
    public static final String TYPE_RECORD_NEW = "todo_record_new";
    /**
     * 待办列表
     */
    public static final String TYPE_RECORD_LIST = "todo_record_list";
    /**
     * 待办删除
     */
    public static final String TYPE_RECORD_DEL = "todo_record_del";
    /**
     * 待办更新
     */
    public static final String TYPE_RECORD_SAVE = "todo_record_save";
    /**
     * 待办完成
     */
    public static final String TYPE_RECORD_FINISH = "todo_record_finish";
    /**
     * 待办显示
     */
    public static final String TYPE_RECORD_SHOW = "todo_record_show";
    /**
     * 加载初始化数据
     */
    public static final String TYPE_LOAD_INIT_DATA = "todo_load_init_data";

    public TodoEvent(Object source, String type, Object data) {
        super(source, type, data);
    }

    public static TodoEvent of(Object source, String type) {
        return new TodoEvent(source, type, null);
    }


}
